<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>网站搜索广告管理</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>

    <script type="text/javascript" src="/static/js/admin/advert/advert.js"></script>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> <a href="http://boss.saile.cc">首页</a> <span class="c-gray en">&gt;</span> 广告管理 <span class="c-gray en">&gt;</span> 网站搜索广告 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="/admin/advert/advertList.html" method="post" id="searchForm">
            <input type="hidden" id="count" value="${advertList.total }" />
            <input type="hidden" id="page" name="page" value="${advertList.pageNum }" />
            <input type="hidden" id="pageSize" name="pageSize" value="${advertList.pageSize }" />
            <input type="text" name="title" value="${bean.title}" placeholder=" 广告名称" style="width:250px" class="input-text">
            <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="layerTools.layerShowFullScreen('新增广告','/admin/advert/advert.html')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增广告</a></span> <%--<span class="r">共有数据：<strong>54</strong> 条</span> --%></div>
    <div class="mt-20 portfolio-content">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="5%">序号</th>
                <th width="20%">广告名</th>
                <th width="10%">图片</th>
                <th width="5%">权重</th>
                <th width="25%">链接地址</th>
                <th width="25%">介绍</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <tbody>
                <c:forEach var="item" items="${advertList.list}" varStatus="index">
                    <tr class="text-c">
                        <td>${index.index+1}</td>
                        <td>${item.title }</td>
                        <td>
                            <div class="portfoliobox">
                                <div class="picbox">
                                    <a href="${picPath}/${item.picUrl}" data-lightbox="gallery">
                                        <img src="${picPath}/${item.picUrl }" width="100px" height="100px;">
                                    </a>
                                </div>
                            </div>
                        </td>
                        <td>${item.sort }</td>
                        <td>${item.url }</td>
                        <td>${item.introducer}</td>
                        <td class="td-manage">
                            <a style="text-decoration:none" class="ml-5" onclick="layerTools.layerShowFullScreen('广告编辑','/admin/advert/advert.html?tid=${item.tid }')"
                               href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
                       <a title="删除" href="javascript:;" onclick="deleteAdvert('${item.tid }')" class="ml-5" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6e2;</i></a>
                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>
</div>

<%@ include file="/common/include-footer.jsp" %>
</body>
</html>
